<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IPagedList<TfsReports.Web.Models.Changeset>>" %>
<%@ Import Namespace="TfsReports.Web.Extensions"%>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"><%= ViewData["Title"] %></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%= ViewData["Title"] %></h2>
    <table>
        <thead>
        <tr>
            <th>Id</th>
            <th>Title</th>
        </tr>
        </thead>
        <tbody>
        <% foreach (var item in Model) { %>
        <tr>
            <td><%= Html.ActionLink(item.Id.ToString(), "Details", new { id=item.Id })%></td>
            <td><%= Html.Encode(item.Title) %></td>
        </tr>
        <% } %>
        </tbody>
    </table>
    <% if (ViewData.Model.PageCount > 1){ %>
    <div class="pager"><%= Html.Pager(ViewData.Model.PageSize, ViewData.Model.PageNumber, ViewData.Model.TotalItemCount)%></div>
    <% } %>
</asp:Content>